home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 June: Reference Library / Dev.CD Jun 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 23 / develop issue 23 code / projectdrag 1.1b8.sea / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / CheckOut.r / CheckOut.r
Encoding:
Text File  |  1995-07-12  |  5.4 KB  |  198 lines  |  [TEXT/MPS ]

  1. /* CheckOut.r: CheckOut applet resources for ProjectDrag
  2.  *
  3.  * A set of applets for drag and drop source control by Tim Maroney.
  4.  * See develop, issue 23 for details.
  5.  *
  6.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  7.  * and using the MoreFiles utilities by Jim Luther.
  8.  *
  9.  * This software is free, but don't modify and redistribute it without
  10.  * changing the status window to indicate your name and your changes!
  11.  */
  12.  
  13. #define SystemSevenOrLater 1
  14. #include "Types.r"
  15. #include "SysTypes.r"
  16. #include "BalloonTypes.r"
  17. #include "AEUserTermTypes.r"
  18.  
  19. include "CheckOut.rsrc";
  20.  
  21. /* First thing we need is the Finder Help Balloon */
  22. resource 'hfdr' (-5696) {
  23.     HelpMgrVersion, 0, 0, 0,
  24.     {
  25.         HMStringItem {
  26.             "Drag a source file onto this icon, and CheckOut will check it out for modification.",
  27.         },
  28.     }
  29. };
  30.  
  31.  
  32.  
  33.  
  34. /* Menus & Menu Help Resources */
  35. resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple, 
  36.     {    /* array: 2 elements */
  37.         /* [1] */    "About CheckOut…", noIcon, noKey, noMark, plain,
  38.         /* [2] */    "-", noIcon, noKey, noMark, plain
  39.     }
  40. };
  41.  
  42. resource 'MENU' (129, "File") { 129, textMenuProc, allEnabled, enabled, "File", 
  43.     {    /* array: 2 elements */
  44.         /* [1] */    "Check File Out…",    noIcon, "O", noMark, plain,
  45.         /* [2] */    "Quit",         noIcon, "Q", noMark, plain
  46.     }
  47. };
  48.  
  49. resource 'DITL' (128, purgeable) {
  50.     {    /* array DITLarray: 3 elements */
  51.         /* [1] */ {97, 198, 117, 270}, Button { enabled, "OK" }, 
  52.         /* [2] */ {8, 8, 87, 271}, StaticText { disabled,
  53.             "CheckOut - ProjectDrag's applet for checking files out for modification. "
  54.             "By Tim Maroney." },
  55.         /* [3] */ {0, 0, 0, 0}, HelpItem { disabled, HMScanhdlg { 1 } } 
  56.     }
  57. };
  58.  
  59. /* Here are the STR#'s that the Help text is stored in! */
  60. resource 'STR#' (128,purgeable) {    /* help items for Apple Menu */
  61.     { /* array StringArray: 3 elements */
  62.         /* [1] */     "Utterly fascinating information about CheckOut.",
  63.         /* [2] */     "Click here to dismiss this dialog.",
  64.         /* [3] */     "This text describes the product, its author, and why!"
  65.     }
  66. };
  67.  
  68. resource 'STR#' (129,purgeable) {    /* help items for File Menu */
  69.     { /* array StringArray: ? elements */
  70.         /* [1] */    "Use this menu to check a file out for modification and to exit CheckOut.",
  71.         /* [2] */     "Use this menu to check a file out for modification and to exit CheckOut. "
  72.                       "This menu is unavailable now.",
  73.         /* [3] */     "Use this menu to check a file out for modification and to exit CheckOut. "
  74.                     "This menu is unavailable until you respond to the alert box or dialog box.",
  75.         /* [4] */     "This command is unavailable until you respond to the alert box or dialog box.",
  76.         /* [5] */     "Use this command to check a file out for modification.",
  77.         /* [6] */     "Use this command to check a file out for modification. "
  78.                     "Not available now for some strange reason.",
  79.         /* [7] */     "Use this command to exit CheckOut.",
  80.         /* [8] */     "Use this command to exit CheckOut. "
  81.                     "Not available now for some strange reason."
  82.     }
  83. };
  84.  
  85. resource 'STR#' (200, purgeable) {    /* help info for the Error Dialog */
  86.     {    /* array StringArray: 3 elements */
  87.         /* [1] */    "Click here to dismiss this dialog.",
  88.         /* [2] */    "This text describes the error that occured.",
  89.         /* [3] */    "This error ID gives more specific details of the error."
  90.     }
  91. };
  92.  
  93. resource 'STR#' (2001, purgeable) {    /* progress info */
  94.     {    /* array StringArray: 2 elements */
  95.         /* [1] */    "checking out “<1>”",
  96.         /* [1] */    "canceling checkout of “<1>”"
  97.     }
  98. };
  99.  
  100. resource 'hmnu' (129, purgeable) {    /* File */
  101.     HelpMgrVersion, 0, 0, 0,
  102.     HMSkipItem {    /* no missing items */    },
  103.     {    /* array HMenuArray: 4 elements */
  104.         HMStringResItem {    /* Menu Title */
  105.             129, 1,
  106.             129, 2,
  107.             129, 3,
  108.             129, 4
  109.         },
  110.         HMStringResItem {    /* Open File… */
  111.             129, 5,
  112.             129, 6,
  113.             0, 0,
  114.             0, 0
  115.         },
  116.         HMStringResItem {    /* Quit */
  117.             129, 7,
  118.             129, 8,
  119.             0, 0,
  120.             0, 0
  121.         },
  122.     }
  123. };
  124.  
  125. resource 'BNDL' (128, purgeable) {
  126.     'pdco',
  127.     0,
  128.     {    /* array TypeArray: 2 elements */
  129.         /* [1] */
  130.         'FREF',
  131.         {    /* array IDArray: 2 elements */
  132.             /* [1] */ 0, 128,
  133.             /* [2] */ 1, 129
  134.         },
  135.         /* [2] */
  136.         'ICN#',
  137.         {    /* array IDArray: 2 elements */
  138.             /* [1] */ 0, 128,
  139.             /* [2] */ 1, 0
  140.         }
  141.     }
  142. };
  143.  
  144. data 'pdco' (0) {
  145.     "CheckOut - Free software by Tim Maroney!"
  146. };
  147.  
  148. resource 'FREF' (128) { 'APPL', 0, "" }; 
  149. resource 'FREF' (129) { '****', 1, "" }; 
  150.  
  151.  
  152. /*
  153.     This is the KEY resource in supporting AEVTs - it is used by scripting/macro
  154.     systems such as Control Tower & QuicKeys in determing what events an application
  155.     supports.
  156.     
  157.     In this one, we simply tell it we support the required events, since that is all
  158.     we do.  If you add additional events, you MUST consult the AETE documentation
  159.     distributed by Apple.  Make sure you find the RELEASE NOTES, since this resource
  160.     has undergone a NUMBER of chanes.
  161. */
  162. resource 'aete' (0, "Apple Events Terminology") {
  163.  
  164.     0x00,            /* major version number in BCD */
  165.     0x90,            /* minor version number in BCD. From 7/9/91 version of AEUT docs */
  166.     english,        /* descriptions are in english */
  167.     roman,            /* use roman language script system */
  168.     
  169.     {    /* array Suites: 1 elements */
  170.     
  171.         /*******************************************************
  172.         [1] -- The part that show we do the required AppleEvents
  173.         *******************************************************/
  174.  
  175.         "Required Suite",
  176.         "Events that every application should support",
  177.         'reqd',
  178.         1,            /* suite level */
  179.         1,            /* suite version */
  180.         
  181.         {
  182.             /* array Events: 0 elements */
  183.         },
  184.         
  185.         {
  186.             /* array Classes: 0 elements */
  187.         },
  188.         
  189.         {
  190.             /* array ComparisonOps: 0 elements */
  191.         },
  192.         
  193.         {
  194.             /* array Enumerations: 0 elements */
  195.         },
  196.     }
  197. };
  198.